<!--src/main/resources/templates/user/delete.html-->
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>删除用户</title>
    <link rel="stylesheet" type="text/css" th:href="@{/css/deletestyles.css}">
</head>
<body>
<h2>删除用户</h2>
<p>你确定要删除这个用户吗?</p>

<table>
    <tr>
        <th>用户编号</th>
        <th>用户名</th>
        <th>Email</th>
        <th>个人介绍</th>
        <th>用户密码</th>
        <th>电话号码</th>
        <th>QQ号码</th>
    </tr>
    <tr>
        <td th:text="${user.id}"></td>
        <td th:text="${user.username}"></td>
        <td th:text="${user.email}"></td>
        <td th:text="${user.info}"></td>
        <td th:text="${user.password}"></td>
        <td th:text="${user.phone}"></td>
        <td th:text="${user.qq}"></td>
    </tr>
</table>

<form method="post" th:action="@{'/user/delete/' + ${user.id}}">
    <input type="submit" value="确认删除" class="confirm-btn">
    <a th:href="@{'/user/findAll'}" class="cancel-btn">取消</a>
</form>
</body>
</html>
